package src.main;

import src.textReader.TextReader;
import src.graph.Graph;
import src.node.Node;
/**
 * Created by IntelliJ IDEA.
 * User: NRG
 * Date: 30.10.12
 * Time: 22:29
 */
public class Main {
    public static void main(String... args) {
        TextReader tr = new TextReader();
        Graph graph = new Graph();
        /*
        Node toAdd = new Node(tr.getLinkedHashMapFromFile("C:\\Clustering\\Test.txt"),0);
        graph.addNode(toAdd);
        Node toAdd2 = new Node(tr.getLinkedHashMapFromFile("C:\\Clustering\\Test2.txt"),1);
        graph.addNode(toAdd2);
        Node toAdd3 = new Node(tr.getLinkedHashMapFromFile("C:\\Clustering\\Test3.txt"),2);
        graph.addNode(toAdd3);
        */

        /*
        Node toAdd = new Node(tr.getLinkedHashMapFromFile("C:\\Clustering\\[Java]Exceptions.txt"),0);
        graph.addNode(toAdd);
        Node toAdd2 = new Node(tr.getLinkedHashMapFromFile("C:\\Clustering\\[Java]Threads.txt"),1);
        graph.addNode(toAdd2);
        Node toAdd3 = new Node(tr.getLinkedHashMapFromFile("C:\\Clustering\\[Literature]Odyssey.txt"),2);
        graph.addNode(toAdd3);
        Node toAdd4 = new Node(tr.getLinkedHashMapFromFile("C:\\Clustering\\[Medicine]Heart.txt"),3);
        graph.addNode(toAdd4);
        Node toAdd5 = new Node(tr.getLinkedHashMapFromFile("C:\\Clustering\\[Medicine]Heart2.txt"),4);
        graph.addNode(toAdd5);
        Node toAdd6 = new Node(tr.getLinkedHashMapFromFile("C:\\Clustering\\[Medicine]Lungs.txt"),5);
        graph.addNode(toAdd6);
        Node toAdd7 = new Node(tr.getLinkedHashMapFromFile("C:\\Clustering\\[Medicine]LungsShort.txt"),6);
        graph.addNode(toAdd7);
        */

        Node toAdd = new Node(tr.getLinkedHashMapFromFile("C:\\Clustering\\[Large]DigFort.txt"),0);
        graph.addNode(toAdd);
        Node toAdd2 = new Node(tr.getLinkedHashMapFromFile("C:\\Clustering\\[Large]Hobbit.txt"),1);
        graph.addNode(toAdd2);
        Node toAdd3 = new Node(tr.getLinkedHashMapFromFile("C:\\Clustering\\[Large]Java1.txt"),2);
        graph.addNode(toAdd3);
        Node toAdd4 = new Node(tr.getLinkedHashMapFromFile("C:\\Clustering\\[Large]Java2.txt"),3);
        graph.addNode(toAdd4);
        Node toAdd5 = new Node(tr.getLinkedHashMapFromFile("C:\\Clustering\\[Large]Math1.txt"),4);
        graph.addNode(toAdd5);

        graph.linkAllNodes();
        System.out.println(graph.edgesInfo());
        System.out.println(graph.nodesInfo());

        //System.out.println(tr.getLinkedHashMapFromFile("C:\\Clustering\\Test.txt"));
    }
}
